package com.itheima.io.encoding.demo02;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class StringDemo02 {

    public static void main(String[] args) throws UnsupportedEncodingException {

        String s = "蓝忘机";

        byte[] bytes = s.getBytes();
        String s1 = Arrays.toString(bytes);
        System.out.println(s1);

        byte[] bytes1 = s.getBytes("GBK");
        String s2 = Arrays.toString(bytes1);
        System.out.println(s2);


    }


}
